package cn.hadron.ssh.action;
import cn.hadron.ssh.bean.Article;
import com.opensymphony.xwork2.ActionSupport;
import cn.hadron.ssh.service.*;
public class ArticleAction extends ActionSupport {
	private int id;
	private Article article;
	private String message;
	private ArticleService as;
	public String detail() throws Exception {
		article=as.findArticle(id);
		return SUCCESS;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Article getArticle() {
		return article;
	}
	public void setArticle(Article article) {
		this.article = article;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public ArticleService getAs() {
		return as;
	}
	public void setAs(ArticleService as) {
		this.as = as;
	}
}
